package com.example.server.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2023-04-19
 */
@Getter
@Setter
@ApiModel(value = "Academy（学院）对象", description = "")
public class Academy implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("学院id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "学院名称",required = true)
    @NotBlank(message = "学院名字不能为空")
    private String academyName;

    @ApiModelProperty("代码")
    private String code;
}
